package com.iwunu.gateway.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.iwunu.gateway.entity.FaceLock;
import com.iwunu.gateway.repository.FaceLockRepository;
import com.iwunu.gateway.service.FlockService;


@Service
public class FlockServiceImpl implements FlockService{
		@Autowired
		private FaceLockRepository faceLockRepository;


		/**
		 * *查询设备信息
		 * clientId 设备ID
		 */
		public FaceLock getFaceLockByMac(String clientId) {
			FaceLock gw = faceLockRepository.selectFaceLockByMac(clientId);
			return gw;
		}
		
		public void update(FaceLock fl){
			faceLockRepository.saveAndFlush(fl);
		}
		
}
